import { Suspense } from 'react';

import AdminLayout from '@/layout/admin';

import RouterLoading from './RouterLoading';

export default function AuthGuard() {
	return (
		<Suspense fallback={<RouterLoading />}>
			<AdminLayout />
		</Suspense>
	);
}
